package com.nf.demo.service.impl;

import com.nf.demo.dao.StaffsDAO;
import com.nf.demo.dao.impl.StaffsDAOImpl;
import com.nf.demo.model.pojo.Staffs;
import com.nf.demo.service.StaffsService;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lwj
 * @date 2025-02-24
 * @vesion 1.0.0
 */
public class StaffsServiceImpl implements StaffsService {
    // 接口实现类
    StaffsDAO STAFFS_DAO = new StaffsDAOImpl();
    @Override
    public ArrayList<Staffs> selectAll() {
        return STAFFS_DAO.selectAll();
    }

    @Override
    public Integer delete(Staffs staffs) {
        return STAFFS_DAO.delete(staffs);
    }

    @Override
    public Integer update(Staffs staffs) {
        return STAFFS_DAO.update(staffs);
    }

    @Override
    public Integer insert(Staffs staffs) {
        return STAFFS_DAO.insert(staffs);
    }

    @Override
    public List<Staffs> selectPage(int page, int totalRow) {
        return null;
    }

    @Override
    public Staffs selectById(int id) {
        return null;
    }
}
